<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{/$head_title/}</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<!-- stylesheets -->
		<link rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/reset.css" />
		<link rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/style.css" media="screen" />
		<link id="color" rel="stylesheet" type="text/css" href="{/$root_dir/}/assets/{/$theme_name/}/css/colors/blue.css" />
		<!-- scripts (jquery) -->
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
		<!--[if IE]><script language="javascript" type="text/javascript" src="{/$root_dir/}/assets/{/$theme_name/}/scripts/excanvas.min.js"></script><![endif]-->
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery.ui.selectmenu.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/jquery.flot.min.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
		<!-- scripts (custom) -->
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.menu.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.chart.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.table.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.form.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.dialog.js" type="text/javascript"></script>
		<script src="{/$root_dir/}/assets/{/$theme_name/}/scripts/smooth.autocomplete.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				style_path = "{/$root_dir/}/assets/{/$theme_name/}/css/colors";
				$("#date-picker").datepicker();
				$("#box-tabs, #box-left-tabs").tabs();
			});
		</script>
	</head>
	<body>

    <div id="colors-switcher" class="color">
        <a href="" class="blue" title="Blue"></a>
        <a href="" class="green" title="Green"></a>
        <a href="" class="brown" title="Brown"></a>
        <a href="" class="purple" title="Purple"></a>
        <a href="" class="red" title="Red"></a>
        <a href="" class="greyblue" title="GreyBlue"></a>
    </div>
    <!-- header -->
    <div id="header">
        <!-- logo -->
        <div id="logo">
            <h1><a href="" title="Smooth Admin"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/logo.png" alt="{/$head_title/}" /></a></h1>
        </div>
        <!-- end logo -->
        <!-- user -->
        <ul id="user">
            <li class="first"><a href="">{/$_adminname/}</a></li>
            <li><a href="{/get_url rule="/main/logout"/}"  title="退出系统">退出系统</a></li>
        </ul>
        <!-- end user -->
        <div id="header-inner">
            <div id="home">
                <a href="{/get_url rule="/system/index"/}"" title="Home"></a>
            </div>
            <!-- quick -->
            <ul id="quick">
                {/if $menu.category/}
                <li>
                    <a href="#" title="Products"><span class="normal">分类管理</span></a>
                    <ul>
                        {/foreach from=$menu.category item=items key=k/}
                        <li><a href="{/get_url rule='/category/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}

                {/if $menu.goods/}
                <li>
                    <a href="#" title="Products">
                        <span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/application_double.png" alt="Products" /></span>
                        <span>商品管理</span></a>
                    <ul>
                        {/foreach from=$menu.goods item=items key=k/}
                        <li><a href="{/get_url rule='/goods/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}


                {/if $menu.purchase/}
                <li>
                    <a href="" title="Events">
                        <span class="icon">
                            <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/calendar.png" alt="Events" /></span>
                        <span>进货管理</span>
                    </a>
                    <ul>
                        {/foreach from=$menu.purchase item=items key=k/}
                        <li><a href="{/get_url rule='/purchase/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}

                {/if $menu.sales/}
                <li>
                    <a href="" title="Pages">
                        <span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/page_white_copy.png" alt="Pages" /></span>
                        <span>出货管理</span></a>
                    <ul>
                        {/foreach from=$menu.sales item=items key=k/}
                        <li><a href="{/get_url rule='/sales/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}

                {/if $menu.statistics/}
                <li>
                    <a href="" title="Links"><span class="icon">
                        <img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/world_link.png" alt="Links" /></span>
                        <span>统计管理</span></a>
                    <ul>
                        {/foreach from=$menu.statistics item=items key=k/}
                        <li><a href="{/get_url rule='/statistics/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}

                {/if $menu.account/}
                <li>
                    <a href="" title="Settings">
                        <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                        <span>帐号管理</span></a>
                    <ul>
                        {/foreach from=$menu.account item=items key=k/}
                        <li><a href="{/get_url rule='/account/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>

                {//if/}
                {/if $menu.member/}
                <li>
                    <a href="" title="Settings">
                        <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                        <span>会员管理</span></a>
                    <ul>
                        {/foreach from=$menu.member item=items key=k/}
                        <li><a href="{/get_url rule='/member/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}

                {/if $menu.system/}
                <li>
                    <a href="" title="Settings">
                        <span class="icon"><img src="{/$root_dir/}/assets/{/$theme_name/}/images/icons/cog.png" alt="Settings" /></span>
                        <span>系统</span></a>
                    <ul>
                        {/foreach from=$menu.system item=items key=k/}
                        <li><a href="{/get_url rule='/system/'/}{/$k/}" class="{/if $inpath[2] eq $k/}current{//if/}">{/$items/}</a></li>
                        {//foreach/}
                    </ul>
                </li>
                {//if/}


            </ul>
            <!-- end quick -->
            <div class="corner tl"></div>
            <div class="corner tr"></div>
        </div>
    </div>
    <!-- end header -->